using System;
using System.Collections.Generic;
using System.Text;
using Attach.Internal;

namespace Attach
{
    public class ReturnException : Return
    {
        private Exception _exception;

        public ReturnException(Exception exception)
        {
            _exception = exception;
        }

        public override object GetReturnValue(object[] parameters)
        {
            throw _exception;
        }
    }
}
